//
//  GBShortMessageTableViewCell.m
//  PublicSentimentMonitorSystem
//
//  Created by 郭斌 on 15/11/13.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import "GBShortMessageTableViewCell.h"

@implementation GBShortMessageTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = WQColor(241, 243, 244);
        
        UIView *container_ = [[UIView alloc] initWithFrame:CGRectMake(3.5,4,screenW - 7,92)];
        container_.layer.cornerRadius = 3.0;
        container_.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:container_];
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, screenW - 20, 60)];
        _titleLabel.textColor = [UIColor blackColor];
        _titleLabel.numberOfLines = 0;
        [container_ addSubview:_titleLabel];
        
        _comefromeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, 90, 25)];
        _comefromeLabel.font = [UIFont systemFontOfSize:12];
        _comefromeLabel.textAlignment = NSTextAlignmentLeft;
        _comefromeLabel.text = @"今日头条";
        _comefromeLabel.textColor = [UIColor lightGrayColor];
        //[container_ addSubview:_comefromeLabel];
        
        _TimeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, 150, 25)];
        _TimeLabel.font = [UIFont systemFontOfSize:12];
        _TimeLabel.textAlignment = NSTextAlignmentLeft;
        _TimeLabel.text = @"2015-11-13 14:02";
        _TimeLabel.textColor = [UIColor lightGrayColor];
        [container_ addSubview:_TimeLabel];
        
        _checkDetailLabel = [[UILabel alloc] initWithFrame:CGRectMake(screenW - 70, 60, 50, 25)];
        _checkDetailLabel.font = [UIFont systemFontOfSize:12];
        _checkDetailLabel.textColor = WQColor(73, 188, 77);
        _checkDetailLabel.text = @"查看详情";
        _checkDetailLabel.textAlignment = NSTextAlignmentLeft;
        //[container_ addSubview:_checkDetailLabel];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
